package ch.zbw.pra.sysventory.application.controller;

import java.io.Serializable;
import java.util.List;

import ch.zbw.pra.sysventory.dataaccess.dataAccessObject.ProcessorDataAccessObject;
import ch.zbw.pra.sysventory.model.Processor;

/**
 * Controller für die gesammelten Processors
 * 
 * @author Ralph Koster
 */

public class ProcessorController implements Serializable {

	private static final long serialVersionUID = 6171422804189822686L;
	
	private ProcessorDataAccessObject processorDataAccessObject;
	private List<Processor> processors;

	public ProcessorController() {
		this.processorDataAccessObject = new ProcessorDataAccessObject();
	}

	public List<Processor> loadProcessors() {
		processors = processorDataAccessObject.getAllProcessorFromDatabase();
		return processors;

	}
}
